package com.Day04;

public class Book01 {
    /*static int i;

    public static void main(String[] args) {
        for( i = 0; i < 10; i++){
            System.out.println("Hello" + "一共打了" + i +"遍");
        }
        System.out.println("一共打了" + (i-1) + "遍");

    }*/
    public String brand;
    private int price;
    public String color;

    public void setPrice(int price){
        if(price > 50 || price <= 20){
            System.out.println("你输入的数额有误，请重新输入");
            return;
        }
        this.price = price;
    }
    public int getPrice(){
        return this.price;
    }

}
